package com.wys.read.dao;

import com.wys.read.entity.Article;
import com.wys.read.vo.TitleVO;
import org.beetl.sql.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author wys
 * created in 23:21 2019/1/4
 */
@Repository
public interface ArticleDao extends BaseMapper<Article> {

    /**
     * 获取最新的5篇文章
     * @return
     */
    List<Article> getNewArticles();


    List<TitleVO> getUpdateArticles();

}
